<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>博客天下</title>
    <script src="http://127.0.0.1:90/MyBoke/static/jquery-1.4.2.js"></script>
    <script src="http://127.0.0.1:90/MyBoke/vue/Vue.main.js"></script>
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1:90/MyBoke/static/public.css"></link>
</head>
<body>
    <a href="/gettt" target="_blank"> TM 点我呀</a>
    <input type="button" value="点我呀" onclick="show()"></input>
    <h1>性</h1>
    <div class="premission">
        <div @click="show">{{list_m}}</div>
    </div>
    <script type="text/javascript">
        function show()
        {
            $.ajax(
                {
                    url:"gettt/kk",
                    data:{},
                    dataType:"json",
                    async:true,
                    type:"get",
                    success:function(result,status){
                        console.log(result)
                        console.log(typeof result)
                        console.log(result.id)
                        createPremission(result.premissionList)
                    },
                    error:function(status){
                        alert(status)
                    }
                }
            )
        }

        function createPremission(premissionArray)
        {
            premissionArray.forEach(element => {
                $(".premission").append('<div>'+element+'</div>')
            });
        }

        var vue1 = new Vue({
            el:".premission",
            data:{
                    list_m:"操什么鬼"
                },
            methods: {
                show(){
                    console.log(this.list_m=new Date())
                    show()
                }
            }
        })
    </script>
</body>
</html>